home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpconnect / nsIScriptableInterfaces.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  174 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIScriptableInterfaces.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIScriptableInterfaces_h__
  6. #define __gen_nsIScriptableInterfaces_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIInterfaceInfoManager_h__
  14. #include "nsIInterfaceInfoManager.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIScriptableInterfaces */
  23. #define NS_ISCRIPTABLEINTERFACES_IID_STR "01c78c65-31da-456b-90bf-da39d09fdcbf"
  24.  
  25. #define NS_ISCRIPTABLEINTERFACES_IID \
  26.   {0x01c78c65, 0x31da, 0x456b, \
  27.     { 0x90, 0xbf, 0xda, 0x39, 0xd0, 0x9f, 0xdc, 0xbf }}
  28.  
  29. /**
  30. * Interface used as Components.interfaces (and elsewhere)
  31. * (interesting stuff only reflected into JavaScript)
  32. */
  33. class NS_NO_VTABLE nsIScriptableInterfaces : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEINTERFACES_IID)
  37.  
  38.   /* [noscript] attribute nsIInterfaceInfoManager manager; */
  39.   NS_IMETHOD GetManager(nsIInterfaceInfoManager * *aManager) = 0;
  40.   NS_IMETHOD SetManager(nsIInterfaceInfoManager * aManager) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSISCRIPTABLEINTERFACES \
  46.   NS_IMETHOD GetManager(nsIInterfaceInfoManager * *aManager); \
  47.   NS_IMETHOD SetManager(nsIInterfaceInfoManager * aManager); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSISCRIPTABLEINTERFACES(_to) \
  51.   NS_IMETHOD GetManager(nsIInterfaceInfoManager * *aManager) { return _to GetManager(aManager); } \
  52.   NS_IMETHOD SetManager(nsIInterfaceInfoManager * aManager) { return _to SetManager(aManager); } 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSISCRIPTABLEINTERFACES(_to) \
  56.   NS_IMETHOD GetManager(nsIInterfaceInfoManager * *aManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManager(aManager); } \
  57.   NS_IMETHOD SetManager(nsIInterfaceInfoManager * aManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetManager(aManager); } 
  58.  
  59. #if 0
  60. /* Use the code below as a template for the implementation class for this interface. */
  61.  
  62. /* Header file */
  63. class nsScriptableInterfaces : public nsIScriptableInterfaces
  64. {
  65. public:
  66.   NS_DECL_ISUPPORTS
  67.   NS_DECL_NSISCRIPTABLEINTERFACES
  68.  
  69.   nsScriptableInterfaces();
  70.  
  71. private:
  72.   ~nsScriptableInterfaces();
  73.  
  74. protected:
  75.   /* additional members */
  76. };
  77.  
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsScriptableInterfaces, nsIScriptableInterfaces)
  80.  
  81. nsScriptableInterfaces::nsScriptableInterfaces()
  82. {
  83.   /* member initializers and constructor code */
  84. }
  85.  
  86. nsScriptableInterfaces::~nsScriptableInterfaces()
  87. {
  88.   /* destructor code */
  89. }
  90.  
  91. /* [noscript] attribute nsIInterfaceInfoManager manager; */
  92. NS_IMETHODIMP nsScriptableInterfaces::GetManager(nsIInterfaceInfoManager * *aManager)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96. NS_IMETHODIMP nsScriptableInterfaces::SetManager(nsIInterfaceInfoManager * aManager)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104. // The contractID for the implementation built into xpconnect
  105. #define NS_SCRIPTABLE_INTERFACES_CONTRACTID "@mozilla.org/scriptableinterfaces;1"
  106.  
  107. /* starting interface:    nsIScriptableInterfacesByID */
  108. #define NS_ISCRIPTABLEINTERFACESBYID_IID_STR "c99cffac-5aed-4267-ad2f-f4a4c9d4a081"
  109.  
  110. #define NS_ISCRIPTABLEINTERFACESBYID_IID \
  111.   {0xc99cffac, 0x5aed, 0x4267, \
  112.     { 0xad, 0x2f, 0xf4, 0xa4, 0xc9, 0xd4, 0xa0, 0x81 }}
  113.  
  114. /**
  115. * interface of Components.interfacesByID
  116. * (interesting stuff only reflected into JavaScript)
  117. */
  118. class NS_NO_VTABLE nsIScriptableInterfacesByID : public nsISupports {
  119.  public: 
  120.  
  121.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEINTERFACESBYID_IID)
  122.  
  123. };
  124.  
  125. /* Use this macro when declaring classes that implement this interface. */
  126. #define NS_DECL_NSISCRIPTABLEINTERFACESBYID \
  127.   /* no methods! */
  128.  
  129. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  130. #define NS_FORWARD_NSISCRIPTABLEINTERFACESBYID(_to) \
  131.   /* no methods! */
  132.  
  133. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  134. #define NS_FORWARD_SAFE_NSISCRIPTABLEINTERFACESBYID(_to) \
  135.   /* no methods! */
  136.  
  137. #if 0
  138. /* Use the code below as a template for the implementation class for this interface. */
  139.  
  140. /* Header file */
  141. class nsScriptableInterfacesByID : public nsIScriptableInterfacesByID
  142. {
  143. public:
  144.   NS_DECL_ISUPPORTS
  145.   NS_DECL_NSISCRIPTABLEINTERFACESBYID
  146.  
  147.   nsScriptableInterfacesByID();
  148.  
  149. private:
  150.   ~nsScriptableInterfacesByID();
  151.  
  152. protected:
  153.   /* additional members */
  154. };
  155.  
  156. /* Implementation file */
  157. NS_IMPL_ISUPPORTS1(nsScriptableInterfacesByID, nsIScriptableInterfacesByID)
  158.  
  159. nsScriptableInterfacesByID::nsScriptableInterfacesByID()
  160. {
  161.   /* member initializers and constructor code */
  162. }
  163.  
  164. nsScriptableInterfacesByID::~nsScriptableInterfacesByID()
  165. {
  166.   /* destructor code */
  167. }
  168.  
  169. /* End of implementation class template. */
  170. #endif
  171.  
  172.  
  173. #endif /* __gen_nsIScriptableInterfaces_h__ */
  174.